home *** CD-ROM | disk | FTP | other *** search
- # Portal Compuserve PPP and SLIP script
- # Copyright 1995 Quarterdeck Corporation
- # 5-9-95
-
- STRING username
- STRING password
- STRING IPaddress
- STRING framing
-
- #TRACE ON
- SetTimeout 90 # reset maximum script timeout
-
- # Get username from access method
- CfgGetValue "Username" username
- IF result = 0 THEN
- ABORT "Can't load Username from qdeck.ini"
- ENDIF
-
- # get password from access method
- CfgGetValue "Password" password
- IF result = 0 THEN
- ABORT "Can't load Password from qdeck.ini"
- ENDIF
-
- CfgGetValue "Framing" framing
- IF result =0 THEN
- ABORT "Cannot load framing value from QDECK.INI!"
- ENDIF
-
- DELAY 2
- CommSend "%r%r%r"
- DELAY 2
- CommSend "+%r"
- CommWaitFor "Name:"
- CommSend "portal%r"
- CommWaitFor "help:"
- CommSend "ip%r"
-
- CommWaitFor "login:"
- CommSend username
- CommSend "%r" # send carriage return
-
- CommWaitFor "password:"
- CommSend password
- CommSend "%r" # send carriage return
-
- IF framing = "MPSLIP" THEN
- PRINT "Getting IP Address for SLIP."
- CommReadIPAddr IPAddress
- IF result < 7 THEN # IP Address length test
- ABORT "Missing or invalid IP Address."
- ENDIF
- CfgSetValue "IPAddress" ipaddress
- PRINT "IP Address set to:"; ipaddress
- ENDIF
-
- END
-